package com.woniuxy.exam.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.woniuxy.exam.mapper.ExamTypeMapper;
import com.woniuxy.commons.entity.ExamType;
import com.woniuxy.exam.service.ExamTypeService;

import java.util.List;

/**
@author zouyang
@date 2020/8/3 - 20:25
*/
@Service
public class ExamTypeServiceImpl implements ExamTypeService{

    @Resource
    private ExamTypeMapper examTypeMapper;

    @Override
    public List<ExamType> selectAll() {
        return examTypeMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return examTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ExamType record) {
        return examTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(ExamType record) {
        return examTypeMapper.insertSelective(record);
    }

    @Override
    public ExamType selectByPrimaryKey(Integer id) {
        return examTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ExamType record) {
        return examTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ExamType record) {
        return examTypeMapper.updateByPrimaryKey(record);
    }

}
